package Demo04;

public class Demo01Student {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("和尚");
        stu1.setAge(40);
        System.out.println("姓名:"+stu1.getName()+",年龄:"+stu1.getAge());
        System.out.println("++++++++++++++++++++++");

        Student stu2  = new Student("和尚",45);
        System.out.println("姓名:"+stu2.getName()+",年龄:"+stu2.getAge());
        stu2.setAge(55);
        System.out.println("姓名:"+stu2.getName()+",年龄:"+stu2.getAge());
    }
}
